<%--
    Document   : popuptemplate
    Created on : Jun 4, 2012, 2:47:19 PM
    Author     : ems
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/datetimepicker.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <%--<script type="text/javascript" language="javascript" src="../scripts/jQuery/jquery-1.7.2.min.js"></script> --%>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        if (typeof jQuery == 'undefined') {
            // window.location.href="accessdenied.jsp";
        } 
        $j = jQuery.noConflict();      
        $j(document).ready(function(){
            yhight = ($j('.popup').height()-90)+"px" ;
            $j('.main_content').css('height',yhight );
            $j('.popup-content').css('height',yhight );
        });
        
    </script>
    <style type="text/css">
        .divbutton{
            display:none;
        }
    </style>
    <f:view>
        <h:form>

            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

            <div class="popup" style="height:150px; width:350px">
                <div class="popup-header">
                    <div class="title"><h:outputText value="#{locale.delete_data}"/></div>
                </div>
                <div class="popup-content">
                    <div class="main_content" style="padding:20px 84px">


                        <font style="font-weight:bold"><h:outputText rendered="#{deleteController.table != 'N100Delete'}" value="#{locale.confirm_delele_data}"/>
                        <h:outputText rendered="#{deleteController.table == 'N100Delete'}" value="Bạn muốn xóa nhân viên???"/></font>
                        <h:inputHidden id="id" value="#{deleteController.primarykey}" />
                        <h:inputHidden id="id2" value="#{deleteController.foreignkey}" />
                        <h:inputHidden id="flagabc" value="#{deleteController.flagabc}" />
                        <h:inputHidden id="table" value="#{deleteController.table}" />
                        <h:inputHidden id="pn100c" value="#{deleteController.pn100C}" />
                        <h:inputHidden id="table1" value="#{deleteController.table1}" />
                        <h:inputHidden id="page" value="#{deleteController.pagereload}" />
                        <h:inputHidden id="stringtab" value="#{deleteController.stringtab}" />

                    </div>
                </div>
                <div class="popup-footer">

                    <div class="buttonsave" onclick="parent.jQuery.fancybox.close(); " <h:outputText rendered="#{deleteController.table == 'DELETECUS'}" value="style='display:none'" /> ><span>
                            <h:outputText value="#{locale.close}" />

                        </span></div>

                    <div class="buttonsave" onclick="parent.location='customer4tour.jsp?action=clear'" <h:outputText rendered="#{deleteController.table != 'DELETECUS'}" value="style='display:none'" /> ><span>
                            <h:outputText value="#{locale.close}" />
                        </span></div>  
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N100Delete'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.updateEmptoCus}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N500N'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteN500}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'V180'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteV180}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                        <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'M020'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteM020}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'convertEmp'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.updateDDtoNV}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'convertEmpNV'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.updateDDtoNV1}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'V020'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteV020}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N000'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteN000}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'V220'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteV220}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N250'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteN250()}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>



                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'F000'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteF000}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'C050'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteC050}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'A000'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteA000}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K330'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteK330}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K300'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteK300}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N450'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteN450}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N500'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteN500}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'B050A'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteB0501}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'T025'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteT025}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'S250'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteS250}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'B050'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteB050}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'S200'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteS200}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'V200'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteV200}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N100'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteN100}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N100C'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteN100C}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N100D'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteN100D}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'B670'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteB670}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K100S'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteK100S}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K100K'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteK100K}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'Q350'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.deleteQ350}" styleClass="buttonsave" value="#{locale.delete}">

                        </a4j:commandButton>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N950'}" value="block" />">
                        <h:panelGroup>
                            <a4j:commandButton   action="#{deleteController.deleteN950}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K250'}" value="block" />">
                        <h:panelGroup>
                            <a4j:commandButton   action="#{deleteController.deleteK250}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N550'}" value="block" />">
                        <h:panelGroup>
                            <a4j:commandButton   action="#{deleteController.deleteN550}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N850'}" value="block" />">
                        <h:panelGroup>
                            <a4j:commandButton   action="#{deleteController.deleteN850}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N350'}" value="block" />">
                        <h:panelGroup>
                            <a4j:commandButton   action="#{deleteController.deleteN350}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'L200'}" value="block" />">
                        <h:panelGroup>
                            <a4j:commandButton   action="#{deleteController.deleteL200}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'abc'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteN950}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'M650'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteM650}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K100SU'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteK100Su}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K100'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteK100}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K950'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteK950}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'Q400'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteQ400}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'K400'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteK400}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'V030'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteV030}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'V050'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteV050}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'V050D'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteV050D}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'V050FF'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteV050FF}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton B650" style="display:<h:outputText rendered="#{deleteController.table == 'B650'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteB650}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>   

                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'DELETECUS'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteCus}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'M200'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteM200}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'S100'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteS100}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'S400'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteS400}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'Q000'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteQ000}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'M250'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteM250}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                     <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'M275'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteM250}" styleClass="buttonsave" value="#{locale.delete}">

                            </a4j:commandButton>
                        </h:panelGroup>
                    </div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'C150'}" value="block" />">
                        <h:panelGroup   >
                            <a4j:commandButton   action="#{deleteController.deleteC150}" styleClass="buttonsave" value="#{locale.delete}">
                            </a4j:commandButton>
                            <h:inputHidden value ="#{deleteController.emp}"/>
                            <h:inputHidden value ="#{deleteController.fc150}"/>
                        </h:panelGroup>
                    </div>
                </div>
            </div>

        </h:form>
    </f:view>
</html>
